/*
Point class for simple Graph-library, based on SDL.
Writed by SochiX(sochix.blogspot.com)
2010
*/

#ifndef POINT_H
#define POINT_H

#include "color.hpp"

class Point
{
	private:
	int itsX;
	int itsY;
	Color itsColor;

	public:
	Point(int X, int Y, Color color):itsColor(color) {SetX(X); SetY(Y);};
	Point(int X, int Y, Uint8 red, Uint8 green, Uint8 blue):itsColor(red, green, blue) {SetX(X); SetY(Y);};
	~Point() {};
	void SetX(int X) {itsX=X;};
	void SetY(int Y) {itsY=Y;};
	int GetX() {return itsX;};
	int GetY() {return itsY;};
	Color GetColor() {return itsColor;};
        friend Point operator+(Point& left, Point& right);
        friend Point operator-(Point& left, Point& right);
};

#endif //POINT_H//
